/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import { request } from '@umijs/max';


export async function getgroupList(
  params: {
    mobile: string;
  },
  options?: { [key: string]: any },
) : Promise<API.GoupListType[]>{
  return request<API.GoupListType[]>('/saas-basics/group/user/getgrouplist', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}



// /blade-auth/user/saveLogin
export async function saveLogin(
  params: {
    mobile: string;
    password:string;
    user_id:number;
    system_source: 'cat',
    user_pass:string;
    type:1
  },
  options?: { [key: string]: any },
) : Promise<API.SaveLoginInt>{
  return request<API.SaveLoginInt>('/blade-auth/user/saveLogin', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}



export function getMenuList (
    params:{
      system_source: 'cat',
    },
    options?: { [key: string]: any },
  ): Promise<API.MenuListInt>{
    return request<API.MenuListInt>('/saas-basics/group/menu/show', {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    });
}
  

export function logout (
    params:{
      system_source: 'cat',
    },
    options?: { [key: string]: any },
  ): Promise<void>{
    return request<any>('/blade-auth/user/logout', {
      method: 'POST',
      params: {
        ...params,
      },
      ...(options || {}),
    });
}